<fieldset>
  <legend>Itens ProIV</legend>
  <% form_remote_tag(:url => { :controller => 'proiv_item', :action => 'add_proiv_item' },
                     :html => { :id => 'form_proiv_items' }) do %>
    <%= hidden_field('proiv_item', 'requisicao_id', :value => req.id) %>
    <div id="proiv_items">
      <br>
      <table>
        <thead>
          <tr bgcolor="#99CCFF">
            <th>Nome</th>
            <th>Observa&ccedil;&atilde;o</th>
            <th>&nbsp;</th>
            <th>&nbsp;</th>
          </tr>
        </thead>
        <tbody id="novo_proiv_item">
          <%= render :partial => '/proiv_item/proiv_item', :collection => req.proiv_items %>
        </tbody>
        <tfoot>
          <tr>
            <td><%= text_field('proiv_item', 'nome', :size => 15, :maxlength => 80) %></td>
            <td><%= text_field('proiv_item', 'observacao', :size => 25, :maxlength => 500) %></td>
            <td><%= image_submit_tag("add.gif", { :border => 0 }) %></td>
            <td><%= hidden_field('proiv_item', 'id') %></td>
          </tr>
        </tfoot>
      </table>
    </div>
  <% end %>
  <br />
</fieldset>
